<?php
class ReferenceView{
		
	public function GenerateFromRss($xml)
	{
		$xhtml = "<div>";
		$count = 0;
		foreach($xml->channel->item as $i)
		{
			$xhtml .= "
			<div class='result'>
				<h3>".$i->title."</h3>
				<strong>".substr($i->pubDate,0,22)."</strong>
				<p>".$i->description."</p>				
			</div>";
		}
		$xhtml .= "</div>";
		
		
		return $xhtml;
	}
	
	public function GenerateFromAtom($xml)
	{
		//Not implemented
	}
}